getLoad(1);
function getLoad(page) {
    var next_name = $("#next_name").val();

    $.post("/app/member/agent/getNextList" + "/page/" + page, {next_name: next_name}, function (data) {
        if (data.status <= 0) {
            layer.alert(data.info);
            return false;
        } else {
            var info = data.list.list;
            var page = data.list.page;
            var shtml = "";
            if (!IsNull(info)) {
                for (var key in info) {
                    var svalue = info[key];
                    var sonline = '<td><span class="offline">●</span>离线</td>';
                    if (svalue.online)
                        sonline = '<td><span class="online">●</span>在线</td>';
                    var relogin = "正常";
                    if (!svalue.status)
                        relogin = "禁止登录";
                    shtml += '<tr>';
                    shtml += '<td>' + svalue.user_name + '</td>';
                    shtml += '<td>' + svalue.spayname + '</td>';
                    shtml += '<td>' + svalue.smoney + '</td>';
                    shtml += '<td>' + svalue.reg_dates + '</td>';
                    shtml += '<td>' + svalue.lognum + '</td>';
                    shtml += '<td>' + relogin + '</td>' + sonline;
                    shtml += '</tr>';
                }
                $("#list").html(shtml);
            }
            if (!IsNull(page)) {
                $("#page").html(page);
            } else {
                var shtml = '<tr><td colspan="7" style="text-align: center;">暂无记录</td></tr>';
                $("#list").html(shtml);
            }
        }
    }, "json");
}